package com.ruoyi.game.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 对局(一局)对象 game_set
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
public class GameSet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 房间ID */
    @Excel(name = "房间ID")
    private Long roomId;

    /** 第几局 */
    @Excel(name = "第几局")
    private Long setIndex;

    /** 庄家座位 */
    @Excel(name = "庄家座位")
    private int dealerPos;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 本局结算(JSON) */
    @Excel(name = "本局结算(JSON)")
    private String resultJson;

    /** $column.columnComment */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public void setSetIndex(Long setIndex) 
    {
        this.setIndex = setIndex;
    }

    public Long getSetIndex() 
    {
        return setIndex;
    }

    public void setDealerPos(int dealerPos)
    {
        this.dealerPos = dealerPos;
    }

    public int getDealerPos()
    {
        return dealerPos;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setResultJson(String resultJson) 
    {
        this.resultJson = resultJson;
    }

    public String getResultJson() 
    {
        return resultJson;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomId", getRoomId())
            .append("setIndex", getSetIndex())
            .append("dealerPos", getDealerPos())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("resultJson", getResultJson())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
